import request from '@/utils/request'
import { microservices } from '@/utils'

export function getSysSystem (params) {
  let sortStr = params.sortStr
  delete params.sortStr
  return request({
    url: `${microservices.pmsSys}/SysSystem?${sortStr}`,
    params
  })
}

export function getSysSystemAccess (params) {
  return request({
    url: `${microservices.pmsSys}/SysSystemAccess`,
    params,
    method: 'get'
  })
}

export function postDoEnableOrStop (data) {
  return request({
    url: `${microservices.pmsSys}/SysSystemAccess/doEnableOrStop/${data}`,
    method: 'post'
  })
}
